home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / swaga_c.zip / CURSOR.SWG / 0022_cursor hiding.pas < prev    next >
Pascal/Delphi Source File  |  1994-05-25  |  450b  |  32 lines

  1.  
  2. var crstyp: word;
  3.  
  4. procedure cursoff;
  5.  
  6. { Turns the cursor off.  Stores its format for later redisplaying. }
  7.  
  8. begin
  9.   asm
  10.     mov ah, 03h
  11.     mov bh, 00h
  12.     int 10h
  13.     mov crstyp, cx
  14.     mov ah, 01h
  15.     mov cx, 65535
  16.     int 10h
  17.     end;
  18.   end;
  19.  
  20. procedure curson;
  21.  
  22. { Turns the cursor back on, using the cursor display previously stored. }
  23.  
  24. begin
  25.   asm
  26.     mov ah, 01h
  27.     mov cx, crstyp
  28.     int 10h
  29.     end;
  30.   end;
  31.  
  32.